import { createApp } from "vue";
import App from "./App.vue";
import setupPlugins from "@/plugins";
import DataVVue3 from "@kjgl77/datav-vue3";

// 本地SVG图标
import "virtual:svg-icons-register";

// 样式
import "element-plus/theme-chalk/dark/css-vars.css";
// 暗黑模式自定义变量
import "@/styles/dark/css-vars.css";
import "@/styles/index.scss";
import "uno.css";
import "animate.css";

import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

import Avue from "@smallwei/avue";
import "@smallwei/avue/lib/index.css";
import { AK, bucket, domain, scope, SK } from "./config/qiniu-config";

const app = createApp(App);
// 注册插件
app.use(ElementPlus);
app.use(setupPlugins);
app.use(Avue, {
  option: {
    layout: "total,  prev, pager, next, jumper",
  },
  qiniu: {
    AK: AK, //七牛云相关密钥
    SK: SK, //七牛云相关密钥
    bucket: bucket, //存储地区，默认为华东，其他的如下表
    scope: scope, //存储空间名称
    url: domain, //外链的域名地址
  },
});
app.use(DataVVue3);

app.mount("#app");
